<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
    <script src="js/jquery-3.6.0.js"></script>
    <script src="js/jquery.ripples-min.js"></script>
  </head>
  <body>
    <section></section>
    <script>
      $(document).ready(function () {
        $("section").ripples({
          //在画布上单击或者移动鼠标而产生的拖放的大小
          dropRadius: 10,
          //由波纹引起的折射量
          perturbance: 0.09,
          //要呈现的Web纹理的宽度和高度；此值越大，渲染越平滑，涟漪传播越慢
          resolution: 600,
          //鼠标移动和点击是否触发效果
          interactive: true,
          //用于受影响图像的 crossOrigin 属性
          crossOrigin: "",
        });
      });
    </script>
  </body>
</html>
